public class Item {
    private String title;
    private boolean isMine=false;
    private int size;
    public Item(String title,boolean isMine,int size){
        this.title=title;
        this.isMine=isMine;
        this.size=size;
    }

    @Override
    public boolean equals(Object obj) {
        Item item=(Item) obj;
        return (title.equals(item.title)&&size==item.size);
    }
    public void print(){
        System.out.println(this);
    }

    @Override
    public String toString() {
        return "Item: title:"+title+";isMine:"+isMine+";size:"+size;
    }
    public String getTitle(){
        return title;
    }
    public int getSize(){
        return size;
    }
    public boolean getIsMine(){
        return isMine;
    }
    public static void main(String[] args){
        Item item=new Item("title1",true,60);
        item.print();
    }
}
